package com.zld.smarket.dao;

import com.zld.smarket.dto.OnshelvesList;
import com.zld.smarket.pojo.Onshelves;
import java.util.List;

public interface OnshelvesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Onshelves record);

    Onshelves selectByPrimaryKey(Long id);

    List<Onshelves> selectAll();

    int updateByPrimaryKey(Onshelves record);

    List<OnshelvesList> selectAllAndPage(Integer page, Integer limit);

    Long countOnshelves();

    List<OnshelvesList> search(String s, Integer page, Integer limit);

    List<Onshelves> selectGoods(Long goodsNo, Long shelvesNo,Long supplierId);

    Integer addnum(Long id, Long shelvesonNum);

    Integer reduceNum(Long goodsNo, Long supplierId, Long shelvesNo, Long shelvesdownNum);
}